import { createApp } from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'

// 1.全局的公共样式
import "@/styles/index.scss"

// 2. 引入 element-plus 
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'


// 3.全局混入
import { myMixins } from "@/utils/mixin"

// 4.全局注册组件
import LoginAccount from "@/components/LoginAccount.vue"



createApp(App)
    .use(ElementPlus)
    .mixin(myMixins)
    .component("LoginAccount", LoginAccount)

    .use(store)
    .use(router)
    .mount('#app')
